package com.kerrykidz.system.util.quartz;

import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import org.springframework.scheduling.quartz.QuartzJobBean;

import com.kerrykidz.membership.service.IMemberService;
import com.rdp.util.config.SpringUtil;

/**
 * 会员失效、取消停卡，每天执行一次
 * 
 * @author Tik
 * 
 */
public class MemberQuartz extends QuartzJobBean {
	protected void executeInternal(JobExecutionContext arg0)
					throws JobExecutionException {
		try {
			IMemberService memService = SpringUtil .getBeanByType(IMemberService.class);
			memService.doQuarz();
		} catch (Exception e) {
			e.printStackTrace();
		}

	}

}
